@charset "UTF-8";
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

#root {
  height: 100%;
  width: 100%;
}

/* 主布局容器 */
.ant-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* 确保右侧内容区域占满剩余空间 */
.site-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  /* 允许垂直滚动 */
}

.trigger {
  padding: 0 24px;
  font-size: 18px;
  line-height: 64px;
  cursor: pointer;
  transition: color 0.3s;
}

.trigger:hover {
  color: #1890ff;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 页面内容区样式 */
.site-content {
  margin: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  min-height: 280px;
  max-height: calc(100vh - 112px);
  /* 考虑头部和边距 */
  overflow-y: auto;
  /* 允许垂直滚动 */
  flex: 1;
}

.site-layout-background {
  background: #fff;
}
